package de.jmda.mview.fx.node.typeshape;

import javafx.scene.Node;

import javax.lang.model.element.Element;

import de.jmda.mview.typeshape.DisplayOptionsModelUtil;

/**
 * Base type for classes providing nodes that display icon, type and label of
 * elements.
 *
 * @author rwegner
 */
public abstract class ElementView
{
//	private final static Logger LOGGER = Logger.getLogger(ElementView.class);

	protected ElementData<? extends Element> elementData;
	protected DisplayOptionsModelUtil displayOptionsModelUtil;

	protected Node icon;
	protected Node type;
	protected Node name;
	
	public ElementView(
			ElementData<? extends Element> elementData,
			DisplayOptionsModelUtil displayOptionsModelUtil)
	{
		super();

		this.elementData = elementData;
		this.displayOptionsModelUtil = displayOptionsModelUtil;
	}

	public Node getIcon()
  {
  	return icon;
  }

	public Node getType()
  {
  	return type;
  }

	public Node getName()
  {
  	return name;
  }
}